//
//  BKRightTableViewModel.m
//  FastBee
//
//  Created by mac on 16/9/11.
//  Copyright © 2016年 xbk. All rights reserved.
//

#import "BKRightTableViewModel.h"
#import "BKNetWorkTools.h"

@implementation BKRightTableViewModel


- (void)setValue:(id)value forUndefinedKey:(NSString *)key{};

+ (instancetype)rightModelWithDic:(NSDictionary *)dic{
    
    BKRightTableViewModel *model = [[BKRightTableViewModel alloc]init];
    [model setValuesForKeysWithDictionary:dic];
    return model;
}


//+ (void)downloadDataWithUrl:(NSString *)url successBlock:(void(^)(NSArray *arr))successBlock failBlock:(void(^)(NSError *error))failBlock{
//    
//    NSMutableDictionary *dic = [NSMutableDictionary dictionary];
//    [dic setValue:@"5" forKey:@"call"];
//
//    [[BKNetWorkTools shareNetWorkTools]POST:url parameters:dic progress:nil success:^(NSURLSessionDataTask * _Nonnull task, NSDictionary *responseObject) {
//        
//        //NSLog(@"%@",responseObject);
//        NSDictionary *dic = responseObject[@"data"];
//        NSDictionary *dicProduct = dic[@"products"];
//        
//        
//        
//    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
//        
//        
//    }];
//}
@end
